import React from "react";
import {
  BrowserRouter,
  Redirect,
  Route,
  Switch,
  withRouter,
} from "react-router-dom";
import Usermanage from "./Usermanage/Usermanage";
import Level from "./Level/Level";
import Auth from "./Auth/Auth";
import Info from "./Info";
// import Erro404 from '../Erro404'
function Member(props) {
  // React.useEffect(() => {}, [props.location.pathname]);
  return (
    // <BrowserRouter>
    <Switch>
      <Route path="/member/usermanage" component={Usermanage} />
      <Route path="/member/level" component={Level} />
      <Route path="/member/auth" component={Auth} />
      <Route path="/member/info" component={Info} />
      <Redirect to="/erro404" />
    </Switch>
    // </BrowserRouter>
  );
}

export default withRouter(Member);
